package com.community.common.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author Administrator
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageRequest<T> {

    /**
     * 当前页
     */
    private Integer currentPage = 1;

    /**
     * 每页大小
     */
    private Integer pageSize = 10;

    /**
     * 查询条件
     */
    private T condition;

    /**
     * 排序方式 asc desc
     */
    private String direction;

    /**
     * 排序列
     */
    private String property;

}
